package org.xiangfei.manager.controller;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.util.Assert;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import org.xiangfei.manager.service.UserService;
import org.xiangfei.manager.util.Result;

@RestController
@RequestMapping("/user")
public class UserController  {
    @Autowired
    private UserService userService;

    @RequestMapping("/add/user")
    public Result sendSms(String name) throws Exception {
        Assert.notNull(name, "mobile must not be null");
        Result result = Result.success(userService.addUser());
        return result;
    }

   

}
